package org.sxp.common.websocket;

import javax.websocket.HandshakeResponse;
import javax.websocket.server.HandshakeRequest;
import javax.websocket.server.ServerEndpointConfig;
import javax.websocket.server.ServerEndpointConfig.Configurator;

/**
 * Created by klaus on 2019/6/13.
 */
public class GetHttpSessionConfigurator extends Configurator {
    @Override
    public void modifyHandshake(ServerEndpointConfig sec,
                                HandshakeRequest request, HandshakeResponse response) {
//        HttpSession httpSession=(HttpSession) request.getHttpSession();
//        sec.getUserProperties().put(HttpSession.class.getName(),httpSession);
    }
}
